<?$this->_extends("_layouts/index_layout");?>
<?$this->_block("contents");?>
<script language="javascript" type="text/javascript">
$(function(){
	//tab变换----招生指南
	$('#course_tab span').mouseover(function(){
		var tab_id;
		tab_id = $(this).attr('id');
		//alert(tab_id);
		$('.course_content').css('display','none');
		$('#course_content_'+tab_id).css('display','block');
		$('#course_tab span').attr('class','width100 center color4 line30 fleft');
		$(this).attr('class','width100 center color2 line30 fleft colorbg2');	
	});
});
</script>
<div class="main colorbg1 mt10 line30"><span class="color2 ml10">您现在的位置：</span><a href="<?php echo url('index');?>">首页</a> > <a href="<?php echo url('index/course');?>">教材展示</a></div>
<div class="main mt10">
  <div class="border1 width680 fleft">
    <div id="course_tab" class="colorbg1 mt20">
      <span id="36" <?php if($catId == 36){$class='width100 center color2 line30 fleft colorbg2';}else{$class='width100 center color4 line30 fleft';}echo 'class="'.$class.'"';?>><?php echo $array_cat[36]['type_name']?></span>
      <span id="37" <?php if($catId == 37){$class='width100 center color2 line30 fleft colorbg2';}else{$class='width100 center color4 line30 fleft';}echo 'class="'.$class.'"';?>><?php echo $array_cat[37]['type_name']?></span>
      <span id="38" <?php if($catId == 38){$class='width100 center color2 line30 fleft colorbg2';}else{$class='width100 center color4 line30 fleft';}echo 'class="'.$class.'"';?>><?php echo $array_cat[38]['type_name']?></span>
      <div class="clear"></div>
    </div>
    <div id="course_content_36" class="course_content" <?php if($catId == 36){$display='block';}else{$display='none';}echo 'style="display:'.$display.'"';?>>
    <?php 
	foreach ($list_36 as $row) {
	?>
    <div class="ml10 fleft height150 mt20"><img src="<?=$_BASE_DIR.$row['pic']?>" width="90" height="120" alt="" /></div>
    <div class="ml10 fleft height150 mt20 width600">
      <div class="color1 mt10"><a href="<?=url('/courseread', array('newsid'=>$row['id']))?>" target="_blank"><?php echo $row['title'];?></a></div>
      <div class="color5 mt5">时间：<?php echo date('Y-m-d', $row['release_date']);?> 点击数：<?php echo $row['hits'];?></div>
      <div class="mt10"><?php echo Helper_Util::utfSubStr(strip_tags($row['content']),200);?></div>
    </div>
    <div class="clear mt20"></div>
    <hr width="670" size="1" noshade="noshade" class="color3" />
    <?php
	}
	?>
    <div class="fright mt20 width630 mb20">
      <?php $this->_control("pagination2", "", array('pagination'=>$pager_36,'url_args'=>array('catId'=>36)));?>
    </div>
    <div class="clear"></div>
    </div>
    
    <div id="course_content_37" class="course_content" <?php if($catId == 37){$display='block';}else{$display='none';}echo 'style="display:'.$display.'"';?>>
    <?php 
	foreach ($list_37 as $row) {
	?>
    <div class="ml10 fleft height150 mt20"><img src="<?=$_BASE_DIR.$row['pic']?>" width="90" height="120" alt="" /></div>
    <div class="ml10 fleft height150 mt20 width600">
      <div class="color1 mt10"><a href="<?=url('/courseread', array('newsid'=>$row['id']))?>" target="_blank"><?php echo $row['title'];?></a></div>
      <div class="color5 mt5">时间：<?php echo date('Y-m-d', $row['release_date']);?> 点击数：<?php echo $row['hits'];?></div>
      <div class="mt10"><?php echo Helper_Util::utfSubStr(strip_tags($row['content']),200);?></div>
    </div>
    <div class="clear mt20"></div>
    <hr width="670" size="1" noshade="noshade" class="color3" />
    <?php
	}
	?>
    <div class="fright mt20 width630 mb20">
      <?php $this->_control("pagination2", "", array('pagination'=>$pager_37,'url_args'=>array('catId'=>37)));?>
    </div>
    <div class="clear"></div>
    </div>
    
    <div id="course_content_38" class="course_content" <?php if($catId == 38){$display='block';}else{$display='none';}echo 'style="display:'.$display.'"';?>>
    <?php 
	foreach ($list_38 as $row) {
	?>
    <div class="ml10 fleft height150 mt20"><img src="<?=$_BASE_DIR.$row['pic']?>" width="90" height="120" alt="" /></div>
    <div class="ml10 fleft height150 mt20 width600">
      <div class="color1 mt10"><a href="<?=url('/courseread', array('newsid'=>$row['id']))?>" target="_blank"><?php echo $row['title'];?></a></div>
      <div class="color5 mt5">时间：<?php echo date('Y-m-d', $row['release_date']);?> 点击数：<?php echo $row['hits'];?></div>
      <div class="mt10"><?php echo Helper_Util::utfSubStr(strip_tags($row['content']),200);?></div>
    </div>
    <div class="clear mt20"></div>
    <hr width="670" size="1" noshade="noshade" class="color3" />
    <?php
	}
	?>
    <div class="fright mt20 width630 mb20">
      <?php $this->_control("pagination2", "", array('pagination'=>$pager_38,'url_args'=>array('catId'=>38)));?>
    </div>
    <div class="clear"></div>
    </div>
    
  </div>
  <div class="border1 width270 fright">
    <div class="colorbg3 color1">推荐课程</div>
    <ul class="lb mb10">
      <?php 
		foreach ($course_list_recommend as $row) {
		?>
        
      <li><a href="<?=url('/courseread', array('newsid'=>$row['id']))?>" target="_blank" title="<?php echo $row['title'];?>"><?php echo Helper_Util::utfSubStr(stripslashes($row['title']),30,'...');?></a></li>
      <?php }?>
    </ul>
  </div>
  <div class="border1 width270 fright mt10">
    <div class="colorbg3 color1">热点课程</div>
    <ul class="lb mb10">
      <?php 
		foreach ($course_list_hot as $row) {
		?>
        
      <li><a href="<?=url('/courseread', array('newsid'=>$row['id']))?>" target="_blank" title="<?php echo $row['title'];?>"><?php echo Helper_Util::utfSubStr(stripslashes($row['title']),30,'...');?></a></li>
      <?php }?>
    </ul>
  </div>
  <div class="clear"> </div>
</div>
<?$this->_endblock();?>
